export const titles = [
  {
    name: '案件提交系统',
    key: 'preAuidt'
  },
  {
    name: '备案主体查询',
    key: 'reference'
  },
  {
    name: '登记代理机构查询',
    key: 'record'
  },
  {
    name: '备案及预审申请流程',
    key: 'process',
    id: 13
  }, {
    name: '代理机构登记流程',
    key: 'agency',
    id: 14
  }
]

export const reCordFormRow = [{
    span: 9,
    label: '代理机构名称',
    component: 'AInput',
    placeholder: '请输入代理机构名称',
    prop: 'company',
    allowClear: true
  },
  {
    span: 1,
    label: '文章标题',
    component: 'AInput',
    placeholder: '请输入文章标题',
    prop: 'title1',
    allowClear: true,
    show: false
  },
  {
    span: 9,
    label: '代理机构代码',
    component: 'AInput',
    placeholder: '请输入代理机构代码',
    prop: 'code',
    allowClear: true
  },
  {
    span: 1,
    label: '文章标题',
    component: 'AInput',
    placeholder: '请输入文章标题',
    prop: 'title',
    allowClear: true,
    show: false
  },
  {
    span: 2,
    component: 'OtherButton',
    btName: '查询',
    cb: 'toSearch',
    customButtonItemStyle: {
      color: '#fff',
      border: '0px',
      background: '#2d5acb'
    }
  },
  {
    span: 2,
    component: 'OtherButton',
    btName: '重置',
    cb: 'clearAll'
  },
]

export const referFormRow = [{
    span: 9,
    label: '备案主体名称',
    component: 'AInput',
    placeholder: '请输入备案主体名称',
    prop: 'company',
    allowClear: true
  },
  {
    span: 1,
    label: '文章标题',
    component: 'AInput',
    placeholder: '请输入文章标题',
    prop: 'title1',
    allowClear: true,
    show: false
  },
  {
    span: 9,
    label: '所在区',
    component: 'ASelect',
    placeholder: '请选择所在区',
    prop: 'area',
    loading: false,
    disabled: false,
    isCustomList: true,
    customRequestList(instance) {
      instance.loading = true
      instance.disabled = true
      setTimeout(() => {
        instance.disabled = false
        instance.loading = false
        instance.list = [{
            label: '三水区',
            value: '三水区'
          },
          {
            label: '南海区',
            value: '南海区'
          },
          {
            label: '禅城区',
            value: '禅城区'
          },
          {
            label: '顺德区',
            value: '顺德区'
          },
          {
            label: '高明区',
            value: '高明区'
          },
        ]
      }, 1000)
    },
    allowClear: true
  },
  {
    span: 1,
    label: '文章标题',
    component: 'AInput',
    placeholder: '请输入文章标题',
    prop: 'title2',
    allowClear: true,
    show: false
  },
  {
    span: 2,
    component: 'OtherButton',
    btName: '查询',
    cb: 'toSearch',
    customButtonItemStyle: {
      color: '#fff',
      border: '0px',
      background: '#2d5acb'
    }
  },
  {
    span: 2,
    component: 'OtherButton',
    btName: '重置',
    cb: 'clearAll'
  },
]